package com.yunhe.policyfulfillment.authority.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 角色对象
 * @desc 角色对象定义
 * @author liuronglei
 */
@ApiModel(value = "PolicyRole", description = "角色对象")
@Data
public class PolicyRole implements Serializable {

    private static final long serialVersionUID = -8808814350173119485L;

    @ApiModelProperty(value = "角色ID")
    private Long id;

    @ApiModelProperty(value = "角色编码")
    private String roleCode;

    @ApiModelProperty(value = "角色别名")
    private String name;

    @ApiModelProperty(value = "角色名")
    private String title;

    @ApiModelProperty(value = "是否可用")
    private String activity = "1";

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "排序序号")
    private String sn;

    @ApiModelProperty(value = "是否初始化")
    private boolean initRole = false;

    @ApiModelProperty(value = "创建人名称")
    private String creator;

    @ApiModelProperty(value = "新增时间")
    private String createTime;

    @ApiModelProperty(value = "更新时间")
    private String updateTime;

    @ApiModelProperty(value = "关联用户数量")
    private Long numberOfAssociatedUsers;
}
